package com.aiyi.education.mapper;


import com.aiyi.education.entity.KsUser;
import com.aiyi.education.entity.KsUserWithBLOBs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* Created by Mybatis Generator on 2020/04/23
*/
@Repository
public interface KsUserMapper extends BaseMapper<KsUserWithBLOBs> {
    int deleteByPrimaryKey(Integer userId);

    int insertData(KsUserWithBLOBs record);

    int insertSelective(KsUserWithBLOBs record);

    KsUserWithBLOBs selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(KsUserWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(KsUserWithBLOBs record);

    int updateByPrimaryKey(KsUser record);

    public void saveSysUser(KsUser ksUser);

    IPage<KsUser> getUserPage(Page<KsUser> page, @Param("param") KsUser param);

    List<KsUser> getUserListByParams(@Param("usersParams") KsUser user);



}